<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>外边距合并现象</title>
    <style>
        .one {
            width: 100px;
            height: 100px;
            background-color: #ff00d9;
            margin-bottom: 20px;
        }

        .two {
            width: 100px;
            height: 100px;
            background-color: #00ff58;
            margin-top: 10px;
        }


    </style>
</head>
<body>

<div class="one"></div>

<div class="two"></div>
</body>
</html>